Optimal. Leaf size=60 \[ -\frac {8 c \sec (e+f x) \sqrt {c-c \sin (e+f x)}}{a f}+\frac {2 \sec (e+f x) (c-c \sin (e+f x))^{3/2}}{a f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.14, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.107, Rules used = {2815, 2753,
2752} \begin {gather*} \frac {2 \sec (e+f x) (c-c \sin (e+f x))^{3/2}}{a f}-\frac {8 c \sec (e+f x) \sqrt {c-c \sin (e+f x)}}{a f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2752
Rule 2753
Rule 2815
Rubi steps
\begin {align*} \int \frac {(c-c \sin (e+f x))^{3/2}}{a+a \sin (e+f x)} \, dx &=\frac {\int \sec ^2(e+f x) (c-c \sin (e+f x))^{5/2} \, dx}{a c}\\ &=\frac {2 \sec (e+f x) (c-c \sin (e+f x))^{3/2}}{a f}+\frac {4 \int \sec ^2(e+f x) (c-c \sin (e+f x))^{3/2} \, dx}{a}\\ &=-\frac {8 c \sec (e+f x) \sqrt {c-c \sin (e+f x)}}{a f}+\frac {2 \sec (e+f x) (c-c \sin (e+f x))^{3/2}}{a f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.18, size = 88, normalized size = 1.47 \begin {gather*} -\frac {2 c \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) (3+\sin (e+f x)) \sqrt {c-c \sin (e+f x)}}{a f \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right ) (1+\sin (e+f x))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.76, size = 49, normalized size = 0.82
method | result | size |
default | \(\frac {2 c^{2} \left (\sin \left (f x +e \right )-1\right ) \left (3+\sin \left (f x +e \right )\right )}{a \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(49\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 158 vs.
\(2 (60) = 120\).
time = 0.51, size = 158, normalized size = 2.63 \begin {gather*} \frac {2 \, {\left (3 \, c^{\frac {3}{2}} + \frac {2 \, c^{\frac {3}{2}} \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {6 \, c^{\frac {3}{2}} \sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + \frac {2 \, c^{\frac {3}{2}} \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, c^{\frac {3}{2}} \sin \left (f x + e\right )^{4}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{4}}\right )}}{{\left (a + \frac {a \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )} f {\left (\frac {\sin \left (f x + e\right )^{2}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{2}} + 1\right )}^{\frac {3}{2}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 44, normalized size = 0.73 \begin {gather*} -\frac {2 \, {\left (c \sin \left (f x + e\right ) + 3 \, c\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{a f \cos \left (f x + e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {c \sqrt {- c \sin {\left (e + f x \right )} + c}}{\sin {\left (e + f x \right )} + 1}\, dx + \int \left (- \frac {c \sqrt {- c \sin {\left (e + f x \right )} + c} \sin {\left (e + f x \right )}}{\sin {\left (e + f x \right )} + 1}\right )\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 67, normalized size = 1.12 \begin {gather*} -\frac {8 \, \sqrt {2} c^{\frac {3}{2}} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}{a f {\left (\frac {{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 7.29, size = 90, normalized size = 1.50 \begin {gather*} -\frac {2\,c\,\sqrt {-c\,\left (\sin \left (e+f\,x\right )-1\right )}\,\left (22\,{\sin \left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+2\,{\sin \left (\frac {3\,e}{2}+\frac {3\,f\,x}{2}\right )}^2+4\,\sin \left (2\,e+2\,f\,x\right )-12\right )}{a\,f\,\left (4\,{\sin \left (e+f\,x\right )}^2+\sin \left (e+f\,x\right )+\sin \left (3\,e+3\,f\,x\right )-4\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________